import React from 'react';
import { useNavigate } from 'react-router-dom';


export const Header = () => {
  const navigate = useNavigate()
  return (
    <header style={{
      display: 'flex',
      justifyContent: 'space-between',
      padding: '0 10px',
      height: 50,
      alignItems: 'center'
    }}>
      <span onClick={() => navigate(-1)}>&lt;</span>
      <span>详情</span>
      <span></span>
    </header>  
  )
}

